package com.pug.security.service.impl;

import com.pug.security.vo.UserDetailVO;
import org.springframework.stereotype.Service;
import xq.pug.common.jwt.JwtUtils;

import java.util.Map;

/**
 * @author RenGaoshuai
 * @date 2023/7/19 9:38
 * @description
 */
@Service
public class UserLoginServiceImpl {

    public String getUserToken(UserDetailVO userDetailVO){
        return JwtUtils.getTokenByUsername(userDetailVO.getUsername());
    }


    public String getUserToken(Map<String,Object> param){
        return JwtUtils.getTokenByUsername((String) param.get("username"));
    }
}
